package cn.cs.service;

import cn.cs.mapper.InvoiceTitleMapper;
import cn.cs.mapper.RepairEvaluateMapper;
import cn.cs.pojo.InvoiceTitle;
import cn.cs.pojo.RepairEvaluate;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
public class RestRepairEvaluateService {


    @Resource
    private RepairEvaluateMapper repairEvaluateMapper;


    @RequestMapping(value = "/getRepairEvaluateListByMap", method = RequestMethod.POST)
    public List<Map<String, Object>> getRepairEvaluateListByMap(@RequestBody Map<String, Object> param)throws Exception{
        return repairEvaluateMapper.getRepairEvaluateListByMap(param);
    }

    @RequestMapping(value = "/addRepairEvaluate", method = RequestMethod.POST)
    public Integer addRepairEvaluate(@RequestBody RepairEvaluate repairEvaluate)throws Exception{
        return repairEvaluateMapper.insertRepairEvaluate(repairEvaluate);
    }

    @RequestMapping(value = "/getAppOrderByOrderId", method = RequestMethod.POST)
    public Map<String, Object> getAppOrderByOrderId(@RequestParam("orderId") String orderId)throws Exception{
        return repairEvaluateMapper.getAppOrderByOrderId(orderId);
    }



}
